<%--
  Created by IntelliJ IDEA.
  User: zhanzhongxin
  Date: 2021/8/5
  Time: 15:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.Date" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setAttribute("date", new Date());
    request.setAttribute("num", 3.14);
%>
<h1>${data}</h1>
<h1><f:formatDate value="${date}" pattern="yyyy-MM-dd HH:mm:ss"></f:formatDate></h1>
<h1>${num}</h1>
<h1><f:formatNumber value="${num}" pattern="0.00"></f:formatNumber></h1>
</body>
</html>